package com.hardydou.system.mapper;

import com.hardydou.system.model.SystemRole;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author ：hardy
 * @description：SystemRoleMapper
 * @date ：Created in 2020-03-10
 * @Copyright ：Hardydou.com
 */
@Repository
public interface SystemRoleMapper {
    int deleteByPrimaryKey(Long roleId);

    int insert(SystemRole record);

    int insertSelective(SystemRole record);

    SystemRole selectByPrimaryKey(Long roleId);

    int updateByPrimaryKeySelective(SystemRole record);

    int updateByPrimaryKey(SystemRole record);

    List<SystemRole> findRolesByUserId(Long userId);

    List<SystemRole> findAll(Map params);
}